<p><a href="/usermanager/index">return to full list of users</a></p>

<h1>Add New User</h1>

<form method="post" action="<?php echo $html->url('/usermanager/add')?>">
	<?php echo $form->hidden('User.active', array('value'=>'1') ); ?>
    
    <?php echo $form->label('User.name', 'Full Name of User'); ?>
        <?php echo $form->error('User.name'); ?>
        <?php echo $form->text('User.name', array('size' => '80') ); ?>


    <?php echo $form->label('User.email', 'User E-mail'); ?>
        <?php echo $form->error('User.email'); ?>
        <?php echo $form->text('User.email', array('size' => '80') ); ?>

  
    <?php echo $form->label('User.username', 'User Login Name (only use a-z, A-Z, 0-9; case sensitive)' ); ?>
        <?php echo $form->error('User.username', 'You must provide a username'); ?>
        <?php echo $form->text('User.username', array('size' => '80') ); ?>
        
    <?php echo $form->label('User.new_passwd', 'Password (must be between 7-20 characters in length)' ); ?>
        <?php echo $form->error('User.new_passwd'); ?>
        <?php echo $form->text('User.new_passwd',  array('type' => 'password', 'size' => '80') ); ?>
        
    <?php echo $form->label('User.confirm_passwd', 'Type Password Again' ); ?>
        <?php echo $form->error('User.confirm_passwd'); ?>
        <?php echo $form->text('User.confirm_passwd',  array('type' => 'password', 'size' => '80') ); ?>

    <?php echo $form->label('User.group_id', 'User Group (listed according to access rights)' ); ?>
        <?php echo $form->error('User.group_id', 'You must select a user group'); ?>
        <?php echo $form->select('User.group_id', $userGroups, $form->value('User.group_id') ); ?>

<?php echo $form->submit('Create New User Now'); ?>

</form>
